/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'
  export function renwuNdList(query) {
    return request({
      url: '/appr-contract/workassignzbnd/page',
      method: 'get',
      params: query
    })
  }

  // 任务书拟定详情
  export function getListByzbndAndNdId(query) {
    return request({
      url: 'appr-contract/workassignzb/getListByzbndAndNdId',
      method: 'get',
      params: query
    })
  }
  // 任务拟定详情保存
  export function saveZB(obj) {
    return request({
      url: '/appr-contract/workassignzbnd/saveZB',
      method: 'post',
      data: obj
    })
  }
  //拟定判断指标数量
  export function isflagzhibiao(data) {
    return request({
      url: '/appr-contract/workassignzb/isflagzhibiao',
      method: 'post',
      data: data
    })
  }
  //指标拟定提交-判断是否有指标目标值为空
export function confirmMubiao(data) {
  return request({
    url: '/appr-contract/workassignzb/confirmMubiao',
    method: 'post',
    data: data
  })
}
// 
export function submitStatusAll(query) {
  return request({
    url: '/appr-contract/workassignzbnd/submitStatusAll',
    method: 'post',
    data: query
  })
}
// 拟定借宿
export function ndendTask(query) {
  return request({
    url: '/appr-contract/workassignzbnd/endTask',
    method: 'post',
    data: query
  })
}